﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace Kis2012.Models
{
    public class MemberUser : MembershipUser
    {
        
        public string LoginName { get; set; }
        
        public string LoginPass { get; set; }
        
        //public string UserName { get; set; }
        
        public string UserFullName { get; set; }
        
        public string UserEmailAddress { get; set; }
        
        public int UserDept { get; set; }
        
        public int IsAdmin { get; set; }
        
        public int IsActive { get; set; }

        public MemberUser(string providername,
                                    string username,
                                    object providerUserKey,
                                    string email,
                                    string passwordQuestion,
                                    string comment,
                                    bool isApproved,
                                    bool isLockedOut,
                                    DateTime creationDate,
                                    DateTime lastLoginDate,
                                    DateTime lastActivityDate,
                                    DateTime lastPasswordChangedDate,
                                    DateTime lastLockedOutDate,
                                    int IsAdmin,
                                    int IsActive,
                                    int UserDept,
                                    string UserFullName) :
                                    base(providername,
                                         username,
                                         providerUserKey,
                                         email,
                                         passwordQuestion,
                                         comment,
                                         isApproved,
                                         isLockedOut,
                                         creationDate,
                                         lastLoginDate,
                                         lastActivityDate,
                                         lastPasswordChangedDate,
                                         lastLockedOutDate)
        {
            this.LoginName = username;
            this.IsActive = IsActive;
            this.IsAdmin = IsAdmin;
            this.UserFullName = UserFullName;
            this.UserDept = UserDept;
        }


    }
}